﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TB_CS.Rate
{
    public partial class Get_Par_Rate : Form
    {
        public Get_Par_Rate()
        {
            InitializeComponent();
        }

        private void Get_Par_Rate_Load(object sender, EventArgs e)
        {
            dataGridView1.DataSource = Class.SysInfo.WSRATE.GET_RATE_LIST_TOP("All", 200).Tables[0];
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if(textBox1.Text=="ShowAll")
            {
                Column6.Visible = true;
            }
            dataGridView1.DataSource = Class.SysInfo.WSRATE.GET_BUYER_NICK_RATE(textBox1.Text.Trim().ToString()).Tables[0];
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Rate_Insert RI = new Rate_Insert();
            RI.Show();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            dataGridView1.DataSource = Class.SysInfo.WSRATE.GET_RATE_LIST_TOP("All", 200).Tables[0];
        }
    }
}
